home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Alles Voor Internet / Tout Pour Internet
/
alles voor internet.iso
/
MacInternet™
/
Unix
/
maclayersunixend1.30.shar
/
1.30
/
layertitle.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-06-17
|
1KB
|
44 lines
/*
* Copyright 1993 by Eric C. Rosen
* Copyright 1989-1992 by David W. Trissel
*
* Not derived from licensed software.
*
* Permission is granted to freely use, copy, modify, and redistribute
* this software, provided that no attempt is made to gain profit from it,
* the author is not construed to be liable for any results of using the
* software, alterations are clearly marked as such, and this notice is
* not modified.
*
*/
/* All rights reserved. */
/* layertitle - utility to specify window title */
#include <stdio.h>
#define ESC 0x1b
/* main() - send string designating layers window title */
main(ac, av)
int ac; /* argument count */
char **av; /* argument vector */
{
char *ap; /* argument scan pointer */
if (--ac != 1)
{ fputs("usage: layertitle \"new window title\"\n", stderr);
exit(1);
}
ap = *++av; /* point to argument string */
/* Transmit the title string in the ANSI Private Message format
** which is
** ESC '^' message ESC '\'
*/
printf("%c%c%s%c%c", ESC, '^', ap, ESC, '\\');
} /* main() */